<?xml version="1.0" encoding="UTF-8"?>
<ui:composition   xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:h="http://java.sun.com/jsf/html"
                  xmlns:ui="http://java.sun.com/jsf/facelets"
                  xmlns:p="http://primefaces.prime.com.tr/ui"
                  xmlns:f="http://java.sun.com/jsf/core">    
    
    
    <h:form id="drop_down">
        <h:commandButton image="resources/img/SIMDB_logo.png" action="#{headerControllerBean.navigateToHomePage()}"/>
        <p:spacer width="100" height="10" />
        <h:selectOneMenu id="option" value="#{showResultBackingBean.option}">
            <f:selectItem itemValue="title" itemLabel="Title"/>            
            <f:selectItem itemValue="actor" itemLabel="Actor"/>
        </h:selectOneMenu>
        <p:spacer width="10" height="10" />
        <p:inputText id="searchText" value="#{showResultBackingBean.searchText}"/>
        <p:spacer width="10" height="10" />
        <p:commandButton id="searchBtn" ajax="false" value="Go" actionListener="#{headerControllerBean.search(evt)}" action="#{headerControllerBean.navigate}"/>
        <h:outputText value="Logged in as: #{LoginBean.user.email}" style="float: right"/>
        
    </h:form>
    
</ui:composition>